

<div class="navbar " role="navigation" > 
    <div class="container-fluid"> 
        <div class="navbar-header displayimg"> 
            <a class="navbar-brand"href="/resp/">
                <img height="50px" width="130px" src="/pic/logo1.jpg" style="margin-top:-10px;">
            </a></div>

<ul class="nav navbar-nav navbar-right"> 
            @guest
            <li style="display:inline-block;"><a href="{{route('login')}}"><span class="glyphicon glyphicon-user"></span>&nbsp;登录</a></li>
            
            @else
            <li style="display:inline-block;"><a href=""><span class="glyphicon glyphicon-user"></span>&nbsp;{{auth()->user()->name}}</a></li>
            <li style="display:inline-block;"><a class="dropdown-item" href="{{ route('logout') }}" onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                    <span class="glyphicon glyphicon-minus-sign"></span>&nbsp;退出
                </a></li>
                <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                    @csrf
                </form>
            @endguest
            
            <li style="display:inline-block;"><a href="{{route('cart.index')}}"><span class="glyphicon glyphicon-shopping-cart"></span>&nbsp;购物篮</a></li>
            
            <li style="display:inline-block;"><a href="{{route('order.index')}}"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;查询订单</a></li>
        
            </ul> 
    </div> 
</div>
